package com.haidechizi.designpattern.proxy.staticproxy;

/**
 * @author haidechizi
 */
public class Agent implements FindHouse {
    private Person person;

    public Agent(Person person) {
        this.person = person;
    }

    @Override
    public void findHouse() {
        System.out.println("确定房源位置");
        person.findHouse();
        System.out.println("收款");
    }
}
